package com.example.project.mapper;

import org.apache.ibatis.annotations.Mapper;
import com.example.project.entity.Progress;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * (Progress)表数据库访问层
 */
@Mapper
public interface ProgressMapper extends BaseMapper<Progress> {

    @Select("SELECT SUM(a.percentage) from progress a where a.proj_id =#{proId}")
    Integer getPercentage(Long proId);
}

